package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.entity.Food;
import java.util.List;

public interface IFoodMapper extends BaseMapper<Food> {
    // 使用注解实现根据 businessId 查询食品
    @Select("SELECT * FROM food WHERE business_id = #{businessId}")
    List<Food> listFoodByBusinessId(@Param("businessId") Integer businessId);
} 